Class InboundRedirectResponse
- java.lang.Object
-
- org.dcache.xrootd.tpc.protocol.messages.AbstractXrootdInboundResponse
-
- org.dcache.xrootd.tpc.protocol.messages.InboundRedirectResponse
-
- All Implemented Interfaces:
XrootdInboundResponse
public class InboundRedirectResponse extends AbstractXrootdInboundResponse
Response from third-party source server. According to protocol, has the following packet structure:
Can also be constructed from a kXR_attn kXR_asyncrd or kXR_asyncdi response.kXR_char streamid[2] kXR_unt16 kXR_redirect kXR_int32 dlen kXR_int32 port kXR_char host[?[opaque][?token]][dlen-4] | url
-
-
Field Summary
-
Fields inherited from class org.dcache.xrootd.tpc.protocol.messages.AbstractXrootdInboundResponse
stat, streamId
-
-
Constructor Summary
Constructors Constructor Description InboundRedirectResponse(io.netty.buffer.ByteBuf buffer, int requestId)InboundRedirectResponse(InboundAttnResponse attnResponse)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetHost()intgetMsec()java.lang.StringgetOpaque()intgetPort()intgetRequestId()The xrootd request type this is a response tojava.lang.StringgetToken()java.net.URLgetUrl()intgetWsec()booleanisReconnect()java.lang.StringtoString()-
Methods inherited from class org.dcache.xrootd.tpc.protocol.messages.AbstractXrootdInboundResponse
getStatus, getStreamId
-
-
-
-
Constructor Detail
-
InboundRedirectResponse
public InboundRedirectResponse(InboundAttnResponse attnResponse) throws ParseException
- Throws:
ParseException
-
InboundRedirectResponse
public InboundRedirectResponse(io.netty.buffer.ByteBuf buffer, int requestId) throws ParseException- Throws:
ParseException
-
-
Method Detail
-
getRequestId
public int getRequestId()
Description copied from interface:XrootdInboundResponseThe xrootd request type this is a response to
-
getHost
public java.lang.String getHost()
-
getMsec
public int getMsec()
-
getOpaque
public java.lang.String getOpaque()
-
getPort
public int getPort()
-
getToken
public java.lang.String getToken()
-
getUrl
public java.net.URL getUrl()
-
getWsec
public int getWsec()
-
isReconnect
public boolean isReconnect()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-